import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

part 'spec_name.g.dart';

@JsonSerializable()
class SpecName extends Equatable {
  factory SpecName.fromJson(Map<String, dynamic> json) =>
      _$SpecNameFromJson(json);

  Map<String, dynamic> toJson() => _$SpecNameToJson(this);

  @override
  List<Object> get props => [language, text];

  final String language;

  final String text;

  SpecName(this.language, this.text);
}
